{% set page_name = "修改用户名" %}
{% extends "layout/immersive.html" %}
{% block content %}
<div class="row"><div class="columns">
  <div class="immersive--content immersive--center">
    <h1>{{ _('修改用户名') }}</h1>
    <h3>{{ _('你只有一次机会，请三思而后行！')}}</h3>
    <form method="POST">
      <div class="row"><div class="columns">
        <label class="inverse material textbox">
          {{ _('Current Password') }}
          <input name="password" type="password" autofocus>
        </label>
      </div></div>
      <div class="row"><div class="columns">
        <label class="inverse material textbox">
          {{ _('新用户名') }}
          <input name="newUname" type="text" autocomplete="username webauthn">
        </label>
      </div></div>
      <br/>
      <div class="row"><div class="columns">
        <div class="text-center">
          <input id="submit" type="submit" value="{{ _('你已经修改过了，如有需要请联系管理员') if handler.user.olduname else _('修改用户名') }}" class="inverse expanded rounded primary button" {% if handler.user.olduname %}disabled{% endif %}>
        </div>
      </div></div>
    </form>
  </div>
</div></div>
{% endblock %}
